package other;

import org.testng.annotations.Test;

import java.io.*;
import java.util.Properties;

public class FileRelativePath {

    @Test
    public void t1() throws IOException {
        String configFile = "C:\\Users\\admin\\IdeaProjects\\java_feature\\src\\main\\java\\other\\config.properties";
        InputStream in = new FileInputStream(configFile);
        Properties props = new Properties();
        props.load(in);

        String property = props.getProperty(configFile);


    }

    @Test
    public void t2() {
        String path = "D:\\wzcq\\Data\\Branch\\CurrentUseDate\\Normal\\data\\LastName.csv";


        File file = new File(path);
        assert file.exists();

    }

}
